import jsonschema

from api.login_api import ihrmLogin

resp = ihrmLogin.ihrm_login("13800000002","123456")

data = resp.json()
print(data)
schema1 = {
    "type":"object",
    "peoperties":{
        "success":{"const":True},
        "code":{"const":10000},
        "message":{"const":"操作成功！"},
        "data":{"type":"string"}
    },
    "required":["success","code","message","data"]
}

resp1 = jsonschema.validate(instance=data,schema=schema1)
print(resp1)